﻿using WorldDesign.Datas;
using Zdap.Common;

namespace Datav.Design.IService
{
    /// <summary>
    ///
    /// </summary>
    public interface IScreenService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <param name="currentUser"></param>
        /// <param name="isCopy"></param>
        /// <returns></returns>
        Task<ResponseContext<long>> Save(ScreenDto model, UserTicket currentUser, bool isCopy = false);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <param name="currentUser"></param>
        /// <returns></returns>
        Task<ResponseContext<bool>> Delete(long id, UserTicket currentUser);


        /// <summary>
        /// 
        /// </summary>
        /// <param name="screenId"></param>
        /// <param name="currentUser"></param>
        /// <returns></returns>
        Task<ResponseContext<ScreenDto>> GetScreen(long screenId, UserTicket currentUser);
    }
}